﻿

namespace WebServer.Proto
{
    /// <summary>
    /// 維護補償
    /// </summary>
    public class NetSend_Compensate : NetSendToServer
    {
        public CompensateDiamondData compensateData;
        protected override ISerialize data
        {
            get
            {
                return compensateData;
            }
        }

        public override ResponseData NewResponseData() => new ResponseData();

        public override bool needResponse => true;

        public NetSend_Compensate() : base()
        {
            message.key = "Compensate";
        }

        protected override void OnSend(Remote remoteConnect)
        {
            base.OnSend(remoteConnect);

            GameDebug.Log($"向游戏逻辑服务器请求發放维护補償：{compensateData.diamond}  date:{compensateData.date}");
        }
    }

}

